package com.river.springbootdemo.practice;

import java.util.*;

/**
 * @author chenxingyu
 * @date 2020/1/7 14:26
 */
public class Reflect {
    public static final Map<String,Integer> WEEK_TYPE_TO_INT_MAP ;
    static {
        WEEK_TYPE_TO_INT_MAP = new HashMap<>();
        WEEK_TYPE_TO_INT_MAP.put("单",1);
        WEEK_TYPE_TO_INT_MAP.put("双",2);
        WEEK_TYPE_TO_INT_MAP.put("",3);
    }
    public static void main(String[] args) {
//        String date = "第1,2节";
//        System.out.println(date.substring(1,date.length()-1));
//        System.out.println(WEEK_TYPE_TO_INT_MAP.get(""));
        String classNames = "19动漫1班,19环境1班,19旅游管理2班,19环境1班,19会计6班,19汽车检维2班,19环境1班,19会计1班,19嵌入式1班";
        Set<String> set = new HashSet<>();
        String[] split = classNames.split(",");
        set.addAll(Arrays.asList(split));
        System.out.println(set);
    }
}
